package org.abacus.platform.workflow;

public abstract class AttachedAble {
	private Transition transition;

	public Transition getTransition() {
		return transition;
	}

	public void setTransition(Transition transition) {
		this.transition = transition;
	}

	protected abstract boolean attachedAble();

	public boolean doWork() {
		if (attachedAble()) {
			return transition.doWork();
		} else {
			return false;
		}
	}
}
